<%--
  Created by IntelliJ IDEA.
  User: Zero
  Date: 2021/5/9
  Time: 13:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Session Attribute</title>
</head>
<body>
<h3>SessionAttribute 注解</h3>
<table border="1">
    <tr>
        <th>方法</th>
        <th>说明</th>
    </tr>
    <tr>

        <td>
            <form action="session_attribute/m1" method="post">
                <input name="name" placeholder="用户名"><br>
                <input type="password" name="password" placeholder="用户密码"><br>
                <input type="date" name="birthday" placeholder="生日"><br>

                <input name="account.name" placeholder="账户名"><br>
                <input type="password" name="account.password" placeholder="账户密码"><br>
                <button type="submit">提交</button>
            </form>

        </td>
        <td></td>
    </tr>
    <tr>

        <td>
            <a href="session_attribute/m2">方法2</a>
        </td>
        <td></td>
    </tr>
</table>
<h5>${requestScope.user}</h5>
<h5>${sessionScope.user}</h5>
</body>
</html>
